﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            
            Console.Write("Enter a number:");
            int num = int.Parse(Console.ReadLine());

            ServiceReference1.Service1Client sc = new ServiceReference1.Service1Client("WSHttpBinding_IService1");
            Console.WriteLine("Http service call - " + sc.GetData(num));

            ServiceReference1.Service1Client sc1 = new ServiceReference1.Service1Client("NetNamedPipeBinding_IService1");
            Console.WriteLine("Named pipe service call - " + sc1.GetData(num));

            ServiceReference1.Service1Client sc2 = new ServiceReference1.Service1Client("NetTcpBinding_IService1");
            Console.WriteLine("Tcp service call - " + sc2.GetData(num));

            Console.ReadLine();
        }
    }
}
